import request from '@/utils/request'
import { addToken } from '@/utils/auth'

export function login(name, password) {
  return request({
    baseURL: '',
    url: '/api/allinpay.member.all/member/login',
    method: 'post',
    params: {
      name,
      password
    }
  })
}

export function logout() {
  var params = {}
  addToken(params)
  return request({
    baseURL: '',
    url: '/api/allinpay.member.all/member/logout',
    method: 'post',
    params
  })
}
